const { Controller } = require('egg')

const ADD_TEMPLATE = [
	{
		name: 'vue3 项目模板',
		npmName: '@li.ziyi/template-vue3',
		value: 'template-vue3',
		version: '1.0.0'
	},
	{
		name: 'react18 项目模板',
		npmName: '@li.ziyi/template-react18',
		value: 'template-react18',
		version: '1.0.0'
	},
	{
		name: 'vue-element-admin 项目模板',
		npmName: '@li.ziyi/template-vue-element-admin',
		value: 'template-vue-element-admin',
		version: '1.0.0'
	}
]

class projectController extends Controller {
	async template() {
		const { ctx } = this
		ctx.body = ADD_TEMPLATE
	}
}

module.exports = projectController
